package org.edu.modules.stu.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-家庭成员管理
 */
@TableName("ve_stu_family")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="家庭成员管理对象", description="ve_stu_family")
public class VeStuFamily extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "学号")
    @Length(max = 20)
        private String code;

    @TableField
    @ApiModelProperty(value = "学生id")
        private Integer stuId;

    @TableField
    @ApiModelProperty(value = "姓名")
    @Length(max = 30)
        private String name;

    @TableField
    @ApiModelProperty(value = "关系码")
    @Length(max = 20)
        private String gxm;

    @TableField
    @ApiModelProperty(value = "生日")
        @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
        private Date birth;

    @TableField
    @ApiModelProperty(value = "家庭成员职业码")
    @Length(max = 30)
        private String jtcyzym;

    @TableField
    @ApiModelProperty(value = "所在单位")
    @Length(max = 100)
        private String szdw;

    @TableField
    @ApiModelProperty(value = "政治面貌")
    @Length(max = 30)
        private String zzmmm;

    @TableField
    @ApiModelProperty(value = "电话")
    @Length(max = 20)
        private String homePhone;

    @TableField
    @ApiModelProperty(value = "移动电话")
    @Length(max = 11)
        private String phone;
}
